<?php $this->load->view('header_view')?>

<div id="main">
	<div class="subcolumns">
		<div class="c100">
        	<div class="subcolumns">
                <div class="c80l">
                    <div class="ads_title">
                        <h2><?php echo $product_info['c_name'].' - '.$product_info['d_name'].' : '.$product_info['title']?></h2>
                    </div>
                    <div class="ads_location">
                        Dia chi: <?php echo $product_info['address']?> 
                        <a href="javascript:;" id="show_on_map" name="show_on_map">Map</a>                        
                        <input type="hidden" id="tf_geo_location" name="tf_geo_location" value="<?php echo $product_info['geo_location']?>">
                        <br />
                        Phone: <?php echo $product_info['phone']?>
                    </div>
                </div>
                <div class="c20r">
                    Giam
                    <?php 
                        if ($product_info['price']!=0) {
                            echo round((($product_info['price']-$product_info['price_discount'])/$product_info['price']*100),2).' % ';	
                        }
                    ?>
                </div>
            </div>
    	</div>
        
		<div class="c100">
			<div class="subcolumns">        	
                <div class="c40l">
                    <div class="subcolumns">
                        Dat mua: <?php echo $product_info['price_discount'] . ' VND'?>
                    </div>
                    <div class="subcolums">
                        <div class="c33l">
                            Gia goc: <br>
                            <?php echo $product_info['price'] ?>
                        </div>
                        <div class="c33l">
                            Giam gia: <br>
                            <?php 
                                if ($product_info['price']!=0) {
                                    echo round((($product_info['price']-$product_info['price_discount'])/$product_info['price']*100),2).' % ';	
                                }
                            ?>
                        </div>
                        <div class="c33r">
                            Tiet kiem: <br>
                            <?php echo ($product_info['price']-$product_info['price_discount']. ' VND') ?>
                        </div>
                    </div>
                    <div class="subcolumns">
                        <div class="subc">
                            <span time="<?php echo strtotime($product_info['date_end'])?>" class="kkcount-down"></span>
                        </div>
                        <div class="subc">
                            Thoi han mua se ket thuc luc: <?php echo date('h:i:s d/m/Y',strtotime($product_info['date_end']))?>
                        </div>
                    </div>
                    <div class="subcolumns">
                        <div class="subc">
                            Chi con 10 phieu / tong so <?php echo $product_info['quantity']?> phieu
                        </div>
                    </div>
                    <div class="subcolumns">
                        <div class="subc">
                            So nguoi da thanh toan: 10 nguoi
                        </div>
                    </div>
                </div>
                <div class="c60r">
                	<div class="subcolums">
                        <div id="slideshow">
                            <?php
                                if ($product_info['image']) {
                                    foreach ($product_info['image'] as $key => $value) {
                                        echo '<img width="400px" height="150px" src="'.base_url().'images/upload/'.$value['uri_path'].'" alt="" '.(($key==0)?'class="active"':'').' />';			
                                    }		
                                }
                            ?>
                        </div>
                    </div>
                    <div class="subcolumns">
                    	<div class="c100">
							<?php echo $product_info['condition'] ?>
                        </div>	
                    </div>
                </div>
            </div>
        </div> 
        
        <div class="c100">
        	<div class="subc">
            	<?php echo $product_info['detail_content']?>
            </div>
        </div>
    </div>
</div>
    
<?php $this->load->view('footer_view')?>